package com.qiyuexinxi.chat.dto.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * @author yangxingyu
 * @date 2020/2/27
 * @description
 */
@ApiModel("获取动态性别列表")
@Data
public class GetDynamicListSexRequest {

    @ApiModelProperty(value = "用户ID",required = true)
    @NotNull(message = "用户ID不能为空")
    private Integer userId;

    @ApiModelProperty("性别")
    @NotEmpty(message = "性别不能为空")
    @Pattern(regexp = "[1-2]", message = "性别格式错误:1.男 2.女")
    private String sex;

    @Min(1)
    @ApiModelProperty(value = "页数",example = "1")
    private Integer page;

    @Min(1)
    @ApiModelProperty(value = "每页数量",example = "10")
    private Integer size;

}
